# Copyright (c) 2023 by Azure
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.


# Weapons:

outfit "Aberrant Spiker"
	category "Secondary Weapons"
	series "Secondary Weapons"
	index 05020
	cost 1370000
	thumbnail "outfit/unknown"
	"mass" 23
	"outfit space" -23
	"weapon capacity" -23
	"gun ports" -1
	"unplunderable" 1
	weapon
		sprite "projectile/aberrant spike"
			"frame rate" 24
			"scale" 0.5
			"rewind"
		sound "minelayer"
		icon "icon/finisher"
		"fire effect" "blood" 20
		"live effect" "spiker trail" 10000
		"die effect" "spiker impact"
		"hit effect" "spiker impact"
		"inaccuracy" 7
		"reload" 90
		"firing energy" 4
		"firing heat" 6
		"firing fuel" 10
		"firing hull" 150
		"velocity" 15
		"lifetime" 700
		"acceleration" 1.45
		"drag" .21
		"turn" 1.3
		"homing" 3
		"optical tracking" 0.9
		"hit force" -1350
		"hull damage" 730
		"shield damage" 1270
		"corrosion damage" 3
		"missile strength" 31
	description "Spikes grow on the backs of many Aberrant variants, made of a seemingly random assortment of materials both metallic and mineral in nature. This device appears to allow an Aberrant to launch these spikes as an offensive weapon, but just how they are able to guide and propel themselves through space is a mystery that a cursory examination of this outfit does not reveal."

effect "spiker trail"
	sprite "effect/blood"
		"no repeat"
		"frame rate" 10
		"random start frame"
	"lifetime" 61
	"random angle" 20
	"random velocity" 6
	"random spin" 5
	"velocity scale" 0

effect "spiker impact"
	sprite "effect/explosion/pug/medium"
		"no repeat"
		"frame rate" 19
	sound "explosion medium"
	"lifetime" 30
	"random angle" 360
	"random frame rate" 5
	"random spin" 6
	"random velocity" .5
	"velocity scale" .4


outfit "Nucleolysis Beam"
	category "Guns"
	series "Guns"
	index 05040
	cost 1900000
	thumbnail "outfit/nucleolysis beam"
	"flotsam sprite" "effect/flotsam nucleolysis beam"
	"mass" 31
	"outfit space" -31
	"weapon capacity" -31
	"flotsam chance" 0.1
	"gun ports" -1
	"unplunderable" 1
	weapon
		sprite "projectile/nucleolysis"
			"frame rate" 15
		sound "nucleolysis"
		"hit effect" "acuit hit"
		"inaccuracy" .2
		"velocity" 420
		"lifetime" 1
		"reload" 1
		"firing energy" 4.2
		"firing heat" 1.5
		"shield damage" 0.8
		"hull damage" 1.6
		"heat damage" -9.1
		"fuel damage" 1.66
		"corrosion damage" 0.015
	description "This beam weapon creates a field inside which otherwise stable atomic nuclei rapidly decay. This effect seems to be inversely proportional to the mass of the nucleus, causing isotopes like deuterium to break down at a higher rate than heavier elements. As the resultant products have a higher energy state than the original nucleus, the beam cools its target, defying conventional thermodynamics."
	description "In practice, this beam can deplete a ship's deuterium fuel while causing the very matter of its hull to decay."


outfit "Telescopic Antimissile"
	category "Turrets"
	series "Anti-Missile"
	index 05010
	cost 16000000
	thumbnail "outfit/telescopic antimissile"
	"flotsam sprite" "effect/flotsam telescopic antimissile"
	"mass" 40
	"outfit space" -40
	"weapon capacity" -40
	"flotsam chance" 0.1
	"unplunderable" 1
	"turret mounts" -1
	weapon
		"hit effect" "quarg anti-missile"
		"hardpoint sprite" "hardpoint/quarg anti missile"
		"anti-missile" 30
		"velocity" 760
		"lifetime" 1
		"reload" 15
		"firing energy" 90
	description "Oddly enough, this antimissile system resembles an array of scanners and telescopes. Such an assortment of sensing devices was certainly not intended to be used as a weapon, but somehow enough power has been pumped through this scanner's optics to make it a potent antimissile defense."
	description "The various lenses and mirrors that make up a large telescope seem to be used to focus the emitted beam, giving this antimissile system a very long range."


# Systems:

outfit "Anomalous Shield Restorer"
	category "Systems"
	series "Shields"
	index 05030
	cost 22000000
	thumbnail "outfit/anomalous shield restorer"
	"flotsam sprite" "effect/flotsam anomalous shield restorer"
	"mass" 37
	"outfit space" -25
	"shield generation" 3
	"shield energy" 6
	"flotsam chance" 0.05
	"unplunderable" 1
	description "This emitter produces no detectable fields of any kind, but a shield springs into existence whenever any danger comes near."


# Power:

outfit "Antimatter Power Cell"
	category "Power"
	series "Generators"
	index 05020
	cost 11000000
	thumbnail "outfit/antimatter power cell"
	"flotsam sprite" "effect/flotsam antimatter power cell"
	"mass" 34
	"outfit space" -13
	"energy generation" 2.8
	"heat generation" 4.9
	"flotsam chance" 0.05
	"unplunderable" 1
	description "This strange device seems to be partially organic in nature, slowly leaking antiprotons through a constantly-regrowing spongelike structure to release energy. The amount of power produced is inconsistent with the amount of matter and antimatter annihilated, generating more energy than should be possible."


# Special

outfit "Anomalous Mass"
	plural "Anomalous Masses"
	category "Special"
	cost 800000
	thumbnail "outfit/anomalous mass"
	"flotsam sprite" "effect/flotsam anomalous mass"
	"flotsam chance" 0.4
	"mass" 2.718
	"outfit space" -4
	"heat generation" 1.4
	"drag" 0.04
	"inertia reduction" 0.04
	"unplunderable" 1
	description "Found with widely varying properties in different mechanisms of an Aberration, this mass of glassy, fleshy material is characterized by the very difficulty of classifying its composition. Webs of anomalous material embedded in the mass seem not to be composed of atomic matter as the Avgi know it, but by something entirely different, which resists any attempts to probe its makeup. This is thought to enable many of the Aberrants' more baffling abilities, for lack of any other explanation."
